﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" 
                   assembly="DDDSample.DomainModel.Potential" 
                   namespace="DDDSample.DomainModel.Potential.Voyage">
  <class name="TransportLeg" table="TransportLeg">
    <id type="Guid">
      <column name="Id" />
      <generator class="guid"></generator>
    </id>        
    <many-to-one name="DepartureLocation" column="DepartureLocationId" not-null="true" cascade="none"/>
    <many-to-one name="ArrivalLocation" column="ArrivalLocationId" not-null="true" cascade="none"/>    
  </class>
</hibernate-mapping>